from ez_setup import use_setuptools
use_setuptools()

from setuptools import setup, find_packages

import os


version = "0.1.19"

setup(
    # basic package data
    name = "dbmigrate",
    version = version,

    # package structure and dependencies
    packages=find_packages('src'),
    package_dir={'':'src'},
    install_requires = [
                        'docutils >= 0.4',
                        'nose >= 0.10.0',
                        'setuptools',
                        'pymock >= 1.0.5',
                        ],
    entry_points = {
    'console_scripts': [
        'dbmigrate = dbmigrate.migration:main',
        ],
    'distutils.commands': [
            'make_migration = dbmigrate.command.make_migration:make_migration',
            'dbmigrate = dbmigrate.command.migrate:dbmigrate',
            ],
    },

    # metadata for upload to PyPI
    author = "Jeff Younker",
    author_email = "jeff@theblobshop.com",
    description = """A tool for performing reversible database migrations.""",
    license = "Copyright: Shannon -jj Behrens <jjinux@gmail.com> -- distributed under the same license as pylons",
    keywords = "db dbapi sql migration upgrade database",
    url = "http://www.theblobshop.com/dbmigrate",
    download_url = "http://www.theblobshop.com/downloads/dbmigrate-%s.tar.gz" % version,

    # use nose to run tests
    test_suite='nose.collector',
)
